package com.encapsulation.exer1;

public class TriangleTest {
	public static void main(String[] args) {
		TriAngle ta = new TriAngle();
		
		ta.setBase(2);
		ta.setHeight(2);
		double area = ta.Area();
		System.out.println("面积为："+area);
	}
}
